<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图标 - 组件演示</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <div class="container">
        <header class="header">
            <h1>🚀 openHarmony_Cordova_NutpiDesign</h1>
            <p class="subtitle">组件演示 - 图标组件</p>
        </header>

        <nav class="demo-nav">
            <a href="../index.html" class="nav-back">← 返回首页</a>
        </nav>

        <main class="main-content">
            <section class="demo-section">
                <h2>🎨 图标演示</h2>
                
                <div class="demo-content">
                    <h3>基础图标</h3>
                    <div class="icon-grid">
                        <div class="icon-item">
                            <span class="icon">📱</span>
                            <span>手机</span>
                        </div>
                        <div class="icon-item">
                            <span class="icon">💻</span>
                            <span>电脑</span>
                        </div>
                        <div class="icon-item">
                            <span class="icon">🎨</span>
                            <span>设计</span>
                        </div>
                        <div class="icon-item">
                            <span class="icon">⚙️</span>
                            <span>设置</span>
                        </div>
                        <div class="icon-item">
                            <span class="icon">🔍</span>
                            <span>搜索</span>
                        </div>
                        <div class="icon-item">
                            <span class="icon">❤️</span>
                            <span>收藏</span>
                        </div>
                    </div>

                    <h3>不同大小</h3>
                    <div style="display: flex; gap: 20px; align-items: center; margin: 20px 0;">
                        <span style="font-size: 16px;">📦</span>
                        <span style="font-size: 24px;">📦</span>
                        <span style="font-size: 32px;">📦</span>
                        <span style="font-size: 48px;">📦</span>
                    </div>

                    <h3>不同颜色</h3>
                    <div style="display: flex; gap: 20px; margin: 20px 0;">
                        <span style="font-size: 32px; color: #1890ff;">⭐</span>
                        <span style="font-size: 32px; color: #52c41a;">⭐</span>
                        <span style="font-size: 32px; color: #faad14;">⭐</span>
                        <span style="font-size: 32px; color: #ff4d4f;">⭐</span>
                    </div>
                </div>
            </section>

            <section class="demo-section">
                <h2>使用代码</h2>
                <pre><code>// 基础图标
&lt;span class="icon"&gt;📱&lt;/span&gt;

// 自定义大小
&lt;span style="font-size: 32px;"&gt;📱&lt;/span&gt;

// 自定义颜色
&lt;span style="color: #1890ff;"&gt;📱&lt;/span&gt;</code></pre>
            </section>
        </main>

        <footer class="footer">
            <p>&copy; 2025 OpenHarmony 三方库适配中心 | MIT License</p>
        </footer>
    </div>

    <style>
        .demo-content {
            background: var(--bg-light);
            padding: 20px;
            border-radius: 8px;
        }

        .demo-content h3 {
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 14px;
            color: var(--text-primary);
        }

        .icon-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }

        .icon-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .icon {
            font-size: 32px;
        }

        .icon-item span:last-child {
            font-size: 12px;
            color: var(--text-secondary);
        }
    </style>
</body>
</html>
